package com.curtis.playwings;

import java.util.*;

import android.app.*;
import android.os.*;
import android.util.*;
import android.view.*;
import android.widget.*;

import com.curtis.playwings.*;
import com.curtis.playwings.ListView.*;
import com.curtis.playwings.surface.*;

//SHS
public class SplashActivity extends Activity {

	private DisplayMetrics display;
	public static int Xsize, Ysize;
	private GraphicsView Gview;
	private Button btn;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash_activity);
        getDeviceSize();
        initSetting();
        
        Handler handler = new Handler() {
        	public void handleMessage (Message msg) {
        		finish();
        	}
        };
        
        
        handler.sendEmptyMessageDelayed(0, 5000);
    }
    
    private void initSetting() {
    Gview = (GraphicsView) findViewById(R.id.Gview);
    }
     
    private void getDeviceSize() {
    display = this.getResources().getDisplayMetrics();
    Xsize = display.widthPixels;
    Ysize = display.heightPixels;
    }
    

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}
